﻿using System.ComponentModel.DataAnnotations;
using System.Xml.Linq;

namespace ManagementApi.Models.Manage
{
    /// <summary>
    /// 施工企业-项目管理员信息表单
    /// </summary>
    public class ManageCreateForm
    {
        /// <summary>
        /// 管理员姓名 
        ///</summary>
        [Display(Name = "管理员姓名")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string? Name { get; set; }

        /// <summary>
        /// 手机号码 
        ///</summary>
        [Display(Name = "手机号码")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string Mobile { get; set; }


        /// <summary>
        /// 验证码 
        ///</summary>
        [Display(Name = "验证码")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string VerificationCode { get; set; }

        /// <summary>
        /// 身份证号码 
        ///</summary>
        [Display(Name = "身份证号码")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string Cardno { get; set; }


        /// <summary>
        /// 登陆密码
        /// </summary>
        [Display(Name = "登陆密码")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MinLength(8, ErrorMessage = "密码至少8位,必须由大小写字母+数字组合")]
        public string Password { get; set; }

        /// <summary>
        /// Token
        /// </summary>
        [Display(Name = "Token")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string Token { get; set; }

    }
}
